From fbb1ee02bc6bd994a6566667ee0d5d75ad421e9a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 Feb 2013 15:22:24 -0500 Subject: [PATCH] Add a test for setting accessible name from gtkbuilder This is wrongly documented in the GtkWidget docs. --- tests/a11y/buttons.txt | 24 +++++++++++++++++++----- tests/a11y/buttons.ui | 17 +++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/tests/a11y/buttons.txt b/tests/a11y/buttons.txt index 075e2757d0..6b1fd88aca 100644 --- a/tests/a11y/buttons.txt +++ b/tests/a11y/buttons.txt @@ -15,10 +15,24 @@ window1 layer: widget alpha: 1 - button5 + button6 "toggle button" parent: grid1 index: 0 + name: Test switch + description: Switches between on and off states + state: enabled focusable sensitive showing visible + toolkit: gtk + + layer: widget + alpha: 1 + + action 0 name: toggle + action 0 description: Toggles the switch + button5 + "toggle button" + parent: grid1 + index: 1 name: Switch description: Switches between on and off states state: checked enabled focusable sensitive showing visible @@ -32,7 +46,7 @@ window1 button4 "radio button" parent: grid1 - index: 1 + index: 2 name: Hello World! member-of: button4 button3 @@ -50,7 +64,7 @@ window1 button3 "radio button" parent: grid1 - index: 2 + index: 3 name: Hello World! member-of: button4 button3 @@ -68,7 +82,7 @@ window1 button2 "check box" parent: grid1 - index: 3 + index: 4 name: Hello World! state: enabled focusable sensitive showing visible toolkit: gtk @@ -84,7 +98,7 @@ window1 button1 "toggle button" parent: grid1 - index: 4 + index: 5 name: Hello World! state: armed checked enabled focusable sensitive showing visible toolkit: gtk diff --git a/tests/a11y/buttons.ui b/tests/a11y/buttons.ui index 88cbc0db6f..b229bbb4a7 100644 --- a/tests/a11y/buttons.ui +++ b/tests/a11y/buttons.ui @@ -72,6 +72,23 @@ 0 + + + True + False + True + True + + + Test switch + + + + + 5 + 0 + + -- 2.30.2